#pragma once

#include <tuple>
#include <QVariantMap>
#include <QList>

namespace TCServer
{
    namespace Manager
    {
        class MultiPostManager
        {
        private:
            MultiPostManager();
            ~MultiPostManager();
        public:
			QList<QVariantMap> queryNewer(const QDateTime &time, uint number);
			QList<QVariantMap> queryOlder(const QDateTime &time, uint number);
            bool newPost(quint64 userId,
                const QString &type,
                const QString &imageCount,
                const QString &mainImage,
                const QString &audioSource,
                const QString &comment);
        public:
            static MultiPostManager* instance();
        };
    }
}